const express = require('express')
const app = express()
const port = 3000
const cors = require('cors');
const router = require('./router/index')
// 启用 CORS，允许跨域请求
app.use(cors());


app.use('/', router)

app.listen(port, () => {
  console.log(`Example app listening on port ${port}`)
})